<template>
  <div class="body">
    <div class="top">
      <span @click="gohome()">&lt;</span>
      <span>超级品牌日</span>
      <i class="iconfont icon-lipinka"></i>
    </div>
    <div class="tag">
      <span><i class="iconfont icon-elment"></i> 品牌盛典</span>
      <span><i class="iconfont icon-elment"></i>新品尝鲜</span>
      <span><i class="iconfont icon-elment"></i>转向福利</span>
    </div>
    <div class="modal" v-for="mount in 2" :key="mount">
      <div class="header">
        <i class="iconfont icon-eliaomocopy"></i> <span>大牌新品尝鲜</span>
      </div>
      <div class="middle">
        <div class="box">
          <img
            src="../../images/Screenshot_2022-02-19-10-26-34-15_a173b174840b623_03.png"
            alt=""
          />
          <span class="through1"></span>
          <img
            src="../../images/Screenshot_2022-02-19-10-26-34-15_a173b174840b623_03.png"
            alt=""
          />
          <span class="through2"></span>
        </div>
        <div class="botbox">
          <span>1月25日</span>
          <span>11月16日-11月22日</span>
        </div>
      </div>
      <div class="scroll">
        <div class="loop">
          <img src="../../images/dapai.png" alt="" />
          <img src="../../images/dapai.png" alt="" />
          <img src="../../images/dapai.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    gohome() {
      this.$router.push("/shouye");
    },
  },
};
</script>

<style scoped>
.body {
  width: 100%;
  background-image: url("../../images/bej.png");
  color: aliceblue;
  font-size: 0.16rem;
}
.top {
  width: 100%;
  height: 0.52rem;
  padding: 0 0.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.2rem;
  color: aliceblue;
}
i {
  font-size: 0.24rem;
}
.tag {
  height: 0.34rem;
  width: 100%;
  font-size: 0.12rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: aliceblue;
}
.tag > span {
  margin: 0 0.06rem;
}
.icon-elment {
  font-size: 0.12rem;
}
.modal {
  width: 3.6rem;
  height: 3rem;
  margin-top: 0.18rem;
  margin-left: 0.1rem;
  background-color: rgb(26, 25, 25);
  border-radius: 0.1rem;
}
.header {
  width: 100%;
  height: 0.62rem;
  padding-left: 0.1rem;
  font-size: 0.14rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.header > i {
  font-size: 0.3rem;
  margin-right: 0.16rem;
}
.middle {
  width: 100%;
  height: 0.68rem;
}
.box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.through1 {
  width: 1.3rem;
  border: 1px solid rgb(158, 158, 158);
}
.through2 {
  width: 0.78rem;
  border: 1px solid rgb(158, 158, 158);
}
.box > img {
  border-radius: 50%;
  width: 0.3rem;
}
.box > img:first-child {
  margin-left: 0.6rem;
}
.botbox > span:first-child {
  margin-left: 0.5rem;
}
.botbox > span:last-child {
  margin-left: 0.8rem;
}
.scroll {
  overflow: auto;
  width: 100%;
  height: 1.64rem;
  padding-left: 0.1rem;
}
.scroll::-webkit-scrollbar {
  display: none;
}
.loop {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.loop > img {
  width: 1.56rem;
  margin-right: 0.1rem;
  border-radius: 0.1rem;
}
</style>